package cn.silver.module.authority.domain;

import cn.silver.framework.mybatis.annotation.Table;
import cn.silver.framework.mybatis.annotation.TableField;
import cn.silver.framework.mybatis.enums.SearchTypeEnums;
import cn.silver.framework.mybatis.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 角色和部门关联 sys_role_dept
 *
 * @author Silver Zhou
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "sys_role_dept")
@Schema(name = "SysRoleDept", title = "角色管理范围")
public class SysRoleDept extends BaseEntity {

    /**
     * 角色ID
     */
    @Schema(title = "关联角色")
    @TableField(name = "role_id", searchType = SearchTypeEnums.EQ)
    private String roleId;

    /**
     * 部门ID
     */
    @Schema(title = "关联组织")
    @TableField(name = "dept_id", searchType = SearchTypeEnums.EQ)
    private String deptId;

}
